i = 1

s = "{:0>3}".format(i)

print(s)

import cv2
from PIL import Image
import numpy as np

path = "D:/RGBD_Face_datasets/Lock3DFace-share/color/001_Kinect_FE_1COLOR/01.jpg"  # RGB彩色图
path2 = "D:/RGBD_Face_datasets/Lock3DFace-share/depth/001_Kinect_FE_1DEPTH/01.png"  # 深度图
image = cv2.imread(path)
image2 = cv2.imread(path2)

if image is None or image2 is None:
    print("Open Error")
# print(image.shape[0])
# print(image.shape[1])
print('opencv read image.shape is', image.shape)
print('opencv read image2.shape is', image2.shape)

image = Image.open(path)  # 用PIL中的Image.open打开图像
image_arr = np.array(image)  # 转化成numpy数组

image2 = Image.open(path2)  # 用PIL中的Image.open打开图像
image_arr2 = np.array(image2)  # 转化成numpy数组
print('numpy read image_arr.shape is ', image_arr.shape)
print('numpy read image_arr2.shape is ', image_arr2.shape)
